﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:bll="clr-namespace:Resn.WhuPub.BLL;assembly=Resn.WhuPub.BLL">
        <DataTemplate x:Key="BookFlowDataTemplate" DataType="{x:Type bll:BookFlow}">
                <Border Style="{StaticResource BorderStyle}">
                        <Grid Margin="6">
                                <Grid.RowDefinitions>
                                        <RowDefinition />
                                </Grid.RowDefinitions>
                                <Grid.ColumnDefinitions>
                                        <ColumnDefinition />
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="Auto" MinWidth="300" />
                                </Grid.ColumnDefinitions>

                                <TextBlock Grid.Column="0" Grid.Row="0" Style="{DynamicResource BigTextBlockStyle}"
                                           HorizontalAlignment="Stretch" VerticalAlignment="Top"
                                           Text="{Binding Name}" />

                                <TextBlock Grid.Column="1" Grid.Row="0" 
                                           HorizontalAlignment="Right" VerticalAlignment="Bottom"
                                           Text="代码" />
                                <TextBlock Grid.Column="2" Grid.Row="0" 
                                           HorizontalAlignment="Left" VerticalAlignment="Bottom"
                                           Text="{Binding Code}" />
                        </Grid>
                </Border>
        </DataTemplate>
</ResourceDictionary>